/*
 * @Author: your name
 * @Date: 2019-12-30 15:03:09
 * @LastEditTime: 2020-02-20 00:09:27
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-admin-template\src\api\cunstmer-manage.js
 */
import request from '@/utils/request'

// 查询客户信息列表
export function getWechatUserInfoList(params) {
  return request({
    url: '/admin/WechatUser/getWechatUserInfoList',
    method: 'get',
    params
  })
}

// 修改客户信息列表
export function changeWechatUserInfo(params) {
  return request({
    url: '/admin/WechatUser/changeWechatUserInfo',
    method: 'post',
    params
  })
}

// 异步查询微信用户消费记录列表
export function getWechatUserExpenditureRecord(params) {
  return request({
    url: '/admin/ExpenditureRecord/getWechatUserExpenditureRecord',
    method: 'get',
    params
  })
}

// 批量更改微信用户账号状态
export function changeWechatUserStatus(params) {
  return request({
    url: '/admin/WechatUser/changeWechatUserStatus',
    method: 'post',
    params
  })
}

// 批量更改微信用户账号状态
export function topUpBalance(params) {
  return request({
    url: '/admin/WechatUser/topUpBalance',
    method: 'post',
    params
  })
}

// 修改微信用户消费记录备注
export function changeWechatUserExpenditureRecordRemark(params) {
  return request({
    url: '/admin/ExpenditureRecord/changeWechatUserExpenditureRecordRemark',
    method: 'post',
    params
  })
}
